﻿namespace ChinaUnicom.Models
{
    using Avatar;
    using System;

    public class Account
    {
        const string MobileDefault = "default-mobile";

        public static bool IsDefault(Account account)
        {
            return account.Mobile.IgnoreCaseEquals(MobileDefault);
        }

        public Account()
        {
            ClientName = "未登录";
            Mobile = MobileDefault;
            Password = string.Empty;
        }

        public string ClientName { get; set; }
        
        public string Password { get; set; }
        
        public string Mobile { get; set; }
        
        public DateTime LastUpdated { get; set; }

        public DateTime LastSigned { get; set; }

        public override string ToString()
        {
            return string.Format("{{{0} : {1}}}", ClientName, Mobile);
        }
    }
}
